<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3-9 vm.$children</title>
</head>
<body>
<div id="app">
    <button @click="child">look component of child</button>
    <test-component></test-component>
</div>
</body>
<script src="./js/vue.js"></script>
<script>
    Vue.component("test-component",{template:"<div>myComponent</div>"})
    var vm=new Vue({
        el:"#app",
        methods:{
            child() {
                console.log(this.$children)
            }
        }
    })
</script>
</html>